package com.demo3;import com.demo2.Student;import org.springframework.context.annotation.Bean;import org.springframework.stereotype.Controller;@Controllerpublic class StudentBean {    @Bean    public Student student1()    {        Student stu = new Student(1,"张三",18);        return stu;    }    @Bean public Student student2()    {        Student stu = new Student(2,"李四",22);        return stu;    }}